package com.uft.model.entity;

import java.io.Serializable;
import java.lang.Integer;
import java.lang.String;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;

import org.hibernate.annotations.Type;
import org.hibernate.annotations.TypeDef;
import org.hibernate.annotations.TypeDefs;
import org.hibernate.annotations.Parameter;
import org.jasypt.hibernate.type.EncryptedStringType;

/**
 * Entity implementation class for Entity: Users
 *
 */
@Entity
@TypeDefs(
	    {
	    @TypeDef(
	        name="encryptedString",
	        typeClass = EncryptedStringType.class,
	        parameters = {
	            @Parameter(name="encryptorRegisteredName", value="myHibernateStringEncryptor")
	        }
	    )
	    }
	)


 
public class Users implements Serializable {

	   
	@Id
	@GeneratedValue
	private Integer userid;
	private String username;
	//@Type(type="encryptedString")
	private String password;
	private boolean enabled;
	private String groups;
	private boolean admin;
	private static final long serialVersionUID = 1L;

	public Users() {
		super();
	}   
	public Integer getUserid() {
		return this.userid;
	}

	public void setUserid(Integer userid) {
		this.userid = userid;
	}   
	public String getUsername() {
		return this.username;
	}

	public void setUsername(String username) {
		this.username = username;
	}   
	public String getPassword() {
		return this.password;
	}

	public void setPassword(String password) {
		this.password = password;
	}   
	public boolean getEnabled() {
		return this.enabled;
	}

	public void setEnabled(boolean enabled) {
		this.enabled = enabled;
	}   
	public String getGroups() {
		return this.groups;
	}

	public void setGroups(String groups) {
		this.groups = groups;
	}   
	public boolean getAdmin() {
		return this.admin;
	}

	public void setAdmin(boolean admin) {
		this.admin = admin;
	}
   
}
